<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/Common Module/load_file.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_df4e0e4e72f77ab290fd1a24f190250a.html">Common Module</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">load_file.h</div></div>
</div><!--header-->
<div class="contents">
<a href="load__file_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="preprocessor">#ifndef __LOAD_FILE_H__</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="preprocessor">#define __LOAD_FILE_H__</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="preprocessor">#include &quot;SWM341.h&quot;</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="preprocessor">#include &quot;ff.h&quot;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">   40</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>{</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997aefea9eb0772378037221a3f1fe759a76">   42</a></span>    <a class="code hl_enumvalue" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997aefea9eb0772378037221a3f1fe759a76">SPI</a> = 0, </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997a8268cafd51299d814aba050e5f54f1ac">   43</a></span>    <a class="code hl_enumvalue" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997a8268cafd51299d814aba050e5f54f1ac">SD</a>,      </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997a65f6b55fdc64778bf10632a795b97761">   44</a></span>    <a class="code hl_enumvalue" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997a65f6b55fdc64778bf10632a795b97761">USB</a>,     </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>} <a class="code hl_enumeration" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a>;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83">   48</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>{</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a1e00c983d4be44226a3b1ba10382e3e9">   50</a></span>    <a class="code hl_enumvalue" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a1e00c983d4be44226a3b1ba10382e3e9">IMG</a> = 0, </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a3dba92f17ebb0d7efe6056d51e9acdc7">   51</a></span>    <a class="code hl_enumvalue" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a3dba92f17ebb0d7efe6056d51e9acdc7">BIN</a>,     </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83ab22456aa73d7862a07ffbc9117324f3e">   52</a></span>    <a class="code hl_enumvalue" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83ab22456aa73d7862a07ffbc9117324f3e">WAV</a>,     </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a2db6506cbb3a11215ddceb3db9c4502b">   53</a></span>    <a class="code hl_enumvalue" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a2db6506cbb3a11215ddceb3db9c4502b">AVI</a>,     </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>} <a class="code hl_enumeration" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83">resource_t</a>;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span><span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code hl_variable" href="load__file_8h.html#a08687ba7285d01a737a269b697bb661c">VolumeStr</a>[FF_VOLUMES];</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>uint8_t <a class="code hl_function" href="load__file_8h.html#aebe4a0d647831986c734e1788150a064">fs_mount</a>(<a class="code hl_enumeration" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a> disk);</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>uint8_t <a class="code hl_function" href="load__file_8h.html#a2826c976bae07983300096521da284b4">fs_unmount</a>(<a class="code hl_enumeration" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a> disk);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>uint8_t <a class="code hl_function" href="load__file_8h.html#a51d572edecc93d80a160b93843fb5208">fs_mkfs</a>(<a class="code hl_enumeration" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a> disk);</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>uint8_t <a class="code hl_function" href="load__file_8h.html#a054ac4b07b339f1cda65d041546a46f2">copy_file</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *src_path, <span class="keyword">const</span> <span class="keywordtype">char</span> *dst_path);</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>uint8_t <a class="code hl_function" href="load__file_8h.html#a2efc2116dbabe389a95c812f9dc6aa03">load_source_to_sdram</a>(<a class="code hl_enumeration" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a> disk, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <a class="code hl_enumeration" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83">resource_t</a> type, <span class="keywordtype">void</span> *res_struct, <span class="keywordtype">void</span> *(*ram_malloc)(<span class="keywordtype">size_t</span>));</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>uint8_t <a class="code hl_function" href="load__file_8h.html#a62a6b593e3ff4f0f2c1b13773df449b0">remove_source_to_sdram</a>(<a class="code hl_enumeration" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83">resource_t</a> type, <span class="keywordtype">void</span> *source, uint8_t (*ram_free)(<span class="keywordtype">void</span> *));</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span><span class="preprocessor">#endif </span><span class="comment">//__LOAD_FILE_H__</span></div>
<div class="ttc" id="aload__file_8h_html_a044f73b36811553cd877767a7df11f83"><div class="ttname"><a href="load__file_8h.html#a044f73b36811553cd877767a7df11f83">resource_t</a></div><div class="ttdeci">resource_t</div><div class="ttdoc">资源类型</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00048">load_file.h:49</a></div></div>
<div class="ttc" id="aload__file_8h_html_a044f73b36811553cd877767a7df11f83a1e00c983d4be44226a3b1ba10382e3e9"><div class="ttname"><a href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a1e00c983d4be44226a3b1ba10382e3e9">IMG</a></div><div class="ttdeci">@ IMG</div><div class="ttdoc">jpg 图 / 通过 PC 端工具转换图片生成的 bin</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00050">load_file.h:50</a></div></div>
<div class="ttc" id="aload__file_8h_html_a044f73b36811553cd877767a7df11f83a2db6506cbb3a11215ddceb3db9c4502b"><div class="ttname"><a href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a2db6506cbb3a11215ddceb3db9c4502b">AVI</a></div><div class="ttdeci">@ AVI</div><div class="ttdoc">avi 格式视频</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00053">load_file.h:53</a></div></div>
<div class="ttc" id="aload__file_8h_html_a044f73b36811553cd877767a7df11f83a3dba92f17ebb0d7efe6056d51e9acdc7"><div class="ttname"><a href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a3dba92f17ebb0d7efe6056d51e9acdc7">BIN</a></div><div class="ttdeci">@ BIN</div><div class="ttdoc">其他 bin 文件(目前仅实现字库)</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00051">load_file.h:51</a></div></div>
<div class="ttc" id="aload__file_8h_html_a044f73b36811553cd877767a7df11f83ab22456aa73d7862a07ffbc9117324f3e"><div class="ttname"><a href="load__file_8h.html#a044f73b36811553cd877767a7df11f83ab22456aa73d7862a07ffbc9117324f3e">WAV</a></div><div class="ttdeci">@ WAV</div><div class="ttdoc">wav 格式音频</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00052">load_file.h:52</a></div></div>
<div class="ttc" id="aload__file_8h_html_a054ac4b07b339f1cda65d041546a46f2"><div class="ttname"><a href="load__file_8h.html#a054ac4b07b339f1cda65d041546a46f2">copy_file</a></div><div class="ttdeci">uint8_t copy_file(const char *src_path, const char *dst_path)</div><div class="ttdoc">拷贝文件</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8c_source.html#l00180">load_file.c:180</a></div></div>
<div class="ttc" id="aload__file_8h_html_a08687ba7285d01a737a269b697bb661c"><div class="ttname"><a href="load__file_8h.html#a08687ba7285d01a737a269b697bb661c">VolumeStr</a></div><div class="ttdeci">const char *const VolumeStr[FF_VOLUMES]</div><div class="ttdoc">User defied volume ID</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8c_source.html#l00108">load_file.c:108</a></div></div>
<div class="ttc" id="aload__file_8h_html_a2826c976bae07983300096521da284b4"><div class="ttname"><a href="load__file_8h.html#a2826c976bae07983300096521da284b4">fs_unmount</a></div><div class="ttdeci">uint8_t fs_unmount(disk_t disk)</div><div class="ttdoc">为磁盘卸载文件系统</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8c_source.html#l00150">load_file.c:150</a></div></div>
<div class="ttc" id="aload__file_8h_html_a2efc2116dbabe389a95c812f9dc6aa03"><div class="ttname"><a href="load__file_8h.html#a2efc2116dbabe389a95c812f9dc6aa03">load_source_to_sdram</a></div><div class="ttdeci">uint8_t load_source_to_sdram(disk_t disk, const char *path, resource_t type, void *res_struct, void *(*ram_malloc)(size_t))</div><div class="ttdoc">加载资源至 SDRAM 内</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8c_source.html#l00289">load_file.c:289</a></div></div>
<div class="ttc" id="aload__file_8h_html_a44edb5dd69763758dda6af4dd162c997"><div class="ttname"><a href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a></div><div class="ttdeci">disk_t</div><div class="ttdoc">磁盘类型</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00040">load_file.h:41</a></div></div>
<div class="ttc" id="aload__file_8h_html_a44edb5dd69763758dda6af4dd162c997a65f6b55fdc64778bf10632a795b97761"><div class="ttname"><a href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997a65f6b55fdc64778bf10632a795b97761">USB</a></div><div class="ttdeci">@ USB</div><div class="ttdoc">U盘( Full / Low - Speed )</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00044">load_file.h:44</a></div></div>
<div class="ttc" id="aload__file_8h_html_a44edb5dd69763758dda6af4dd162c997a8268cafd51299d814aba050e5f54f1ac"><div class="ttname"><a href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997a8268cafd51299d814aba050e5f54f1ac">SD</a></div><div class="ttdeci">@ SD</div><div class="ttdoc">SD-TF卡(2 ~ 32 GB)</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00043">load_file.h:43</a></div></div>
<div class="ttc" id="aload__file_8h_html_a44edb5dd69763758dda6af4dd162c997aefea9eb0772378037221a3f1fe759a76"><div class="ttname"><a href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997aefea9eb0772378037221a3f1fe759a76">SPI</a></div><div class="ttdeci">@ SPI</div><div class="ttdoc">SPI-Flash</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00042">load_file.h:42</a></div></div>
<div class="ttc" id="aload__file_8h_html_a51d572edecc93d80a160b93843fb5208"><div class="ttname"><a href="load__file_8h.html#a51d572edecc93d80a160b93843fb5208">fs_mkfs</a></div><div class="ttdeci">uint8_t fs_mkfs(disk_t disk)</div><div class="ttdoc">磁盘新建卷, 重置清空卷</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8c_source.html#l00162">load_file.c:162</a></div></div>
<div class="ttc" id="aload__file_8h_html_a62a6b593e3ff4f0f2c1b13773df449b0"><div class="ttname"><a href="load__file_8h.html#a62a6b593e3ff4f0f2c1b13773df449b0">remove_source_to_sdram</a></div><div class="ttdeci">uint8_t remove_source_to_sdram(resource_t type, void *source, uint8_t(*ram_free)(void *))</div><div class="ttdoc">销毁位于 SDRAM 内的资源</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8c_source.html#l00332">load_file.c:332</a></div></div>
<div class="ttc" id="aload__file_8h_html_aebe4a0d647831986c734e1788150a064"><div class="ttname"><a href="load__file_8h.html#aebe4a0d647831986c734e1788150a064">fs_mount</a></div><div class="ttdeci">uint8_t fs_mount(disk_t disk)</div><div class="ttdoc">为磁盘挂载文件系统</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8c_source.html#l00128">load_file.c:128</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
